# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        Young  
# Name:         hmwk02
# Description:  排序作业
# Author:       asus
# Date:         2019/3/13
#-------------------------------------------------------------------------------


def sortNumbers(*args,type='asc'):
    if type == 'asc':
        return sorted(args,reverse=False)
    else:
        return sorted(args,reverse=True)
if __name__ == '__main__':
    x = [11,22,66,5,89,2]
    print(sortNumbers(*x,type='desc'))
    print(sortNumbers(*x,type='asc'))



